<!--
 * @Author: byron
 * @Date: 2021-10-06 08:46:37
 * @LastEditTime: 2021-10-06 12:34:22
-->
<template>
    <div class="card" @click="onClick">
        <div class="left">
            <slot name="img-warp"></slot>
            <!-- <MvCard
                img="https://p1.music.126.net/UGfCGnWfiWZQQCG7EG8bfA==/109951166466399605.jpg?param=500y260"
                playCount="999"
            /> -->
        </div>
        <div class="right">
            <div class="name">{{ name }}</div>
            <div class="desc">
                <slot name="desc">{{ desc }}</slot>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    components: {},
    props: ['desc', 'name'],
    data() {
        return {}
    },
    watch: {},
    computed: {},
    methods: {
        onClick(e) {
            this.$emit('click', e)
        },
    },
    created() {},
    mounted() {},
}
</script>
<style lang="scss" scoped>
.card {
    display: flex;
    cursor: pointer;
    .left {
        height: 100%;
    }
    .right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 8px;
        overflow: hidden;
        .name {
            @include text-ellipsis;
            font-size: 12px;
        }
        .desc {
            @include text-ellipsis;

            font-size: 12px;
        }
    }
}
</style>
